package com.my.quartz.boot.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * Auto Injected
 *
 * @author ：Boy
 * @date ：Created in 2022-06-18
 * @description：
 * @modified By：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("sys_job")
@ToString
public class SysJob implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "job_id")
    private String jobId;

    @TableField(value = "job_name")
    private String jobName;

    @TableField(value = "job_group_name")
    private String jobGroupName;

    @TableField(value = "invoke_target")
    private String invokeTarget;

    @TableField(value = "cron_expression")
    private String cronExpression;

    /**
     * cron计划策略0=默认,1=立即触发执行,2=触发一次执行,3=不触发立即执行
     */
    @TableField(value = "misfire_policy")
    private String misfirePolicy;

    /**
     * 任务状态（0正常 1暂停）
     */
    @TableField(value = "status")
    private String status;

    /**
     * 是否并发执行（0允许 1禁止）
     */
    @TableField(value = "concurrent")
    private String concurrent;

}
